﻿package net.wangit.jdbc;

import javax.transaction.Synchronization;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
 * 缓存同步器
 * 
 * @author watson
 * Feb 12, 2010
 */
public final class CacheSynchronization implements Synchronization {

	private static final Log log = LogFactory
			.getLog(net.wangit.jdbc.CacheSynchronization.class);

	public CacheSynchronization() {
	}

	public void beforeCompletion() {
		log.trace("transaction before completion callback");
	}

	public void afterCompletion(int status) {
		log.trace((new StringBuilder(
				"transaction after completion callback, status: ")).append(
				status).toString());
	}

}
